package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatApplicationFeign {

    @PostMapping("/wechat/member/applicationmgr/expenditureincomelist")
    String expenditureIncomeList(@RequestParam ("start")Integer start,@RequestParam ("pageSize")Integer pageSize,@RequestParam ("type")Integer type);

    @PostMapping("/wechat/member/applicationmgr/getamountbycust")
    String getAmountByCust();
    @PostMapping("/wechat/member/applicationmgr/ajaxapplicationlist")
    String getRebatesFeePage(@RequestParam("jsonObject") JSONObject jsonObject);
    @PostMapping("/wechat/member/applicationmgr/applicationlistwithdrawal")
    String applicationListWithdrawal(@RequestParam("jsonObject") JSONObject jsonObject);
   @PostMapping("/wechat/member/applicationmgr/addwithdrawal")
    String addWithdrawal(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result")  BindingResult result);
    @PostMapping("/wechat/member/applicationmgr/getapplicationlist")
    String getAppliCationList(@RequestParam("jsonObject") JSONObject jsonObject);
    @PostMapping("/wechat/member/applicationmgr/addapplication")
    String addApplication(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
}
